package com.zyong.design.pattern.responsibility.case3;

import java.util.List;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: zyong-design-pattern
 * @ClassName: PatternConfiguration
 * @author: zyong
 * @create: 2024-04-13 14:04
 */
@Configuration
public class PatternConfiguration {
    @Bean
    public HandleChainManager handleChainExecute(List<IHandler> handlerList) {
        HandleChainManager handleChainManager = new HandleChainManager();
        handleChainManager.setHandleMap(handlerList);

        return handleChainManager;
    }
}
